package com.heu.blood.analysis.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.heu.blood.analysis.entity.BloodSampleInfoTransfusionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heu.blood.analysis.vo.BloodSampleTransfusionReportVo;
import com.heu.blood.analysis.vo.BloodTestInpatientlabVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 输血申请患者血液样本信息表
 * 
 * @author lhh
 * @email lhh1612325771@163.com
 * @date 2023-11-22 15:29:07
 */
@Mapper
public interface BloodSampleInfoTransfusionDao extends BaseMapper<BloodSampleInfoTransfusionEntity> {
    /**
     * 根据sampleID获取检测报告
     * @param sampleId
     * @return
     */
    BloodSampleTransfusionReportVo selectSamplePatientReport(String sampleId);

    /**
    * @description: 与病人信息联表查询报告
    * @param page
    	* @param wrapper
    * @return com.baomidou.mybatisplus.core.metadata.IPage<com.heu.blood.analysis.vo.BloodSampleTransfusionReportVo>
    * @author lhh
    * @date 2024-07-24
    */

    IPage<BloodSampleTransfusionReportVo> selectSamplePatientReportQuery(IPage<BloodSampleTransfusionReportVo> page,
                                                        @Param(Constants.WRAPPER) QueryWrapper<BloodSampleTransfusionReportVo> wrapper);
}
